home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Games / PC-SIG World of Games (CDRM1080710) (1993).iso / SWMAG / DISK3453.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-10-14  |  13KB  |  371 lines

  1. echo off
  2. prompt $p $
  3. cls
  4. echo. 
  5. if "%1" == "C:" GOTO ready
  6. if "%1" == "c:" GOTO ready
  7. if "%1" == "D:" GOTO ready
  8. if "%1" == "d:" GOTO ready
  9. if "%1" == "E:" GOTO ready
  10. if "%1" == "e:" GOTO ready
  11. if "%1" == "F:" GOTO ready
  12. if "%1" == "f:" GOTO ready
  13. if "%1" == "G:" GOTO ready
  14. if "%1" == "g:" GOTO ready
  15. if "%1" == "H:" GOTO ready
  16. if "%1" == "h:" GOTO ready
  17. if "%1" == "I:" GOTO ready
  18. if "%1" == "i:" GOTO ready
  19. if "%1" == "J:" GOTO ready
  20. if "%1" == "j:" GOTO ready
  21. echo    ┌───────────────────────────────────────────────────────────────────┐
  22. echo    │           The SPORT Wide Area Information Transfer System         │
  23. echo    │                        Installation Utility                       │
  24. echo    │            Copyright(c) 1988, 1992 Satore Center Software         │
  25. echo    └───────────────────────────────────────────────────────────────────┘
  26. echo.   
  27. echo     Sorry,  but you have not specified  a drive on which SPORT should be
  28. echo     installed.  SPORT needs to reside on your Hard Disk Drive C: - J:.
  29. echo.   
  30. echo     For example, to install SPORT on drive C, use "INSTALL C:".  Use the
  31. echo     drive letter followed by a colon to designate the drive.  You should
  32. echo     use this method if you are installing SPORT from one or more distri-
  33. echo     bution diskettes.
  34. echo.   
  35. echo     If you are *NOT* installing from drive A:, but from files already on
  36. echo     your hard disk, use "INSTALL d: H", where "d:" is the drive on which
  37. echo     you will be installing SPORT.   If you received SPORT electronically
  38. echo     in one or more compressed files you should use this method.  Be sure
  39. echo     to use the "H" argument when you run INSTALL.
  40. echo.   
  41. echo     Please try again.
  42. echo.   
  43. GOTO finis
  44.  
  45. :READY
  46. cls
  47. echo. 
  48. echo    ┌───────────────────────────────────────────────────────────────────┐
  49. echo    │           The SPORT Wide Area Information Transfer System         │
  50. echo    │                        Installation Utility                       │
  51. echo    │            Copyright(c) 1988, 1992 Satore Center Software         │
  52. echo    └───────────────────────────────────────────────────────────────────┘
  53. echo. 
  54. echo     Installation will now begin.
  55.  
  56. echo     Please be sure you have all of the distribution disks ready to go.
  57. echo     The installation process is quite short and simple.
  58. echo. 
  59. %1
  60. cd \
  61. echo     Creating \SPORT subdirectory - for SPORT files and utilities.
  62. md sport > nul
  63. echo     Creating \SPORT\INCOMING subdirectory - for incoming mail.
  64. cd \sport
  65. md incoming > nul
  66. echo     Creating \SPORT\DOCS - for SPORT documentation and system notes.
  67. md docs > nul
  68. cd \sport
  69. echo. 
  70.  
  71. If "%2" == "h" GOTO hd1
  72. If "%2" == "H" GOTO hd1
  73. GOTO LOAD1
  74.  
  75. :hd1
  76. if exist *.doc copy *.doc \sport\docs > NUL
  77. if exist *.txt copy *.txt \sport\docs > NUL
  78. if exist *.doc del *.doc > NUL
  79. if exist *.txt del *.txt > NUL
  80. if exist disk1 del disk1 > NUL
  81. if exist disk2 del disk2 > NUL
  82. if exist disk3 del disk3 > NUL
  83. goto hd2
  84.  
  85. :LOAD1
  86. echo. 
  87. IF exist a:DISK1 GOTO d1
  88. echo Please place DISK 1 in Drive A:
  89. pause
  90. IF exist a:DISK1 GOTO d1
  91. goto load1
  92. :D1
  93. echo. 
  94. echo Please wait while files are copied...
  95. if exist a:*.exe copy a:*.exe \sport > NUL
  96. if exist a:*.ovr copy a:*.ovr \sport > NUL
  97. if exist a:*.bat copy a:*.bat \sport > NUL
  98. if exist a:*.raw copy a:*.raw \sport > NUL
  99. if exist a:*.key copy a:*.key \sport > NUL
  100. if exist a:*.ndx copy a:*.ndx \sport > NUL
  101. if exist a:*.ctl copy a:*.ctl \sport > NUL
  102. if exist a:*.lst copy a:*.lst \sport > NUL
  103. if exist a:*.001 copy a:*.001 \sport > NUL
  104. if exist a:*.idx copy a:*.idx \sport > NUL
  105. if exist a:*.cfg copy a:*.cfg \sport > NUL
  106. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  107.  
  108. :LOAD2
  109. cls
  110. echo. 
  111. echo    ┌───────────────────────────────────────────────────────────────────┐
  112. echo    │           The SPORT Wide Area Information Transfer System         │
  113. echo    │                        Installation Utility                       │
  114. echo    │            Copyright(c) 1988, 1992 Satore Center Software         │
  115. echo    └───────────────────────────────────────────────────────────────────┘
  116. echo. 
  117. echo Please place DISK 2 in Drive A:
  118. pause
  119. IF exist a:DISK2 GOTO d2
  120. goto load2
  121. :D2
  122. echo. 
  123. echo Please wait while files are copied...
  124. if exist a:*.exe copy a:*.exe \sport > NUL
  125. if exist a:*.ovr copy a:*.ovr \sport > NUL
  126. if exist a:*.bat copy a:*.bat \sport > NUL
  127. if exist a:*.raw copy a:*.raw \sport > NUL
  128. if exist a:*.key copy a:*.key \sport > NUL
  129. if exist a:*.ndx copy a:*.ndx \sport > NUL
  130. if exist a:*.lst copy a:*.lst \sport > NUL
  131. if exist a:*.ctl copy a:*.ctl \sport > NUL
  132. if exist a:*.cfg copy a:*.cfg \sport > NUL
  133. if exist a:*.001 copy a:*.001 \sport > NUL
  134. if exist a:*.idx copy a:*.idx \sport > NUL
  135. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  136.  
  137. :LOAD3
  138. cls
  139. echo. 
  140. echo    ┌───────────────────────────────────────────────────────────────────┐
  141. echo    │           The SPORT Wide Area Information Transfer System         │
  142. echo    │                        Installation Utility                       │
  143. echo    │            Copyright(c) 1988, 1992 Satore Center Software         │
  144. echo    └───────────────────────────────────────────────────────────────────┘
  145. echo. 
  146. echo Please place DISK 3 in Drive A:
  147. pause
  148. IF exist a:DISK3 GOTO d3
  149. goto load3
  150. :D3
  151. echo. 
  152. echo Please wait while files are copied...
  153. if exist a:*.exe copy a:*.exe \sport > NUL
  154. if exist a:*.ovr copy a:*.ovr \sport > NUL
  155. if exist a:*.bat copy a:*.bat \sport > NUL
  156. if exist a:*.raw copy a:*.raw \sport > NUL
  157. if exist a:*.key copy a:*.key \sport > NUL
  158. if exist a:*.ndx copy a:*.ndx \sport > NUL
  159. if exist a:*.ctl copy a:*.ctl \sport > NUL
  160. if exist a:*.cfg copy a:*.cfg \sport > NUL
  161. if exist a:*.lst copy a:*.lst \sport > NUL
  162. if exist a:*.001 copy a:*.001 \sport > NUL
  163. if exist a:*.idx copy a:*.idx \sport > NUL
  164. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  165.  
  166. :LOAD4
  167. cls
  168. echo. 
  169. echo    ┌───────────────────────────────────────────────────────────────────┐
  170. echo    │           The SPORT Wide Area Information Transfer System         │
  171. echo    │                        Installation Utility                       │
  172. echo    │            Copyright(c) 1988, 1992 Satore Center Software         │
  173. echo    └───────────────────────────────────────────────────────────────────┘
  174. echo. 
  175. echo Please place DISK 4 in Drive A:
  176. pause
  177. IF exist a:DISK4 GOTO d4
  178. goto load4
  179. :D4
  180. echo. 
  181. echo Please wait while files are copied...
  182. if exist a:*.exe copy a:*.exe \sport > NUL
  183. if exist a:*.ovr copy a:*.ovr \sport > NUL
  184. if exist a:*.bat copy a:*.bat \sport > NUL
  185. if exist a:*.raw copy a:*.raw \sport > NUL
  186. if exist a:*.key copy a:*.key \sport > NUL
  187. if exist a:*.ndx copy a:*.ndx \sport > NUL
  188. if exist a:*.ctl copy a:*.ctl \sport > NUL
  189. if exist a:*.cfg copy a:*.cfg \sport > NUL
  190. if exist a:*.lst copy a:*.lst \sport > NUL
  191. if exist a:*.001 copy a:*.001 \sport > NUL
  192. if exist a:*.idx copy a:*.idx \sport > NUL
  193. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  194.  
  195.  
  196. :hd2
  197. cls
  198. echo. 
  199. echo    ┌───────────────────────────────────────────────────────────────────┐
  200. echo    │           The SPORT Wide Area Information Transfer System         │
  201. echo    │                        Installation Utility                       │
  202. echo    │            Copyright(c) 1988, 1992 Satore Center Software         │
  203. echo    └───────────────────────────────────────────────────────────────────┘
  204. echo. 
  205. echo     You are now ready to configure SPORT for your own system.   Several
  206. echo     questions will be presented to help you customize your installation.
  207. echo. 
  208. echo     Please  note that some questions have default responses.   You will
  209. echo     only need to press [RETURN] on your keyboard  to accept the default
  210. echo     response.  Several of these questions will be confusing if you have
  211. echo     not yet read the documentation for SPORT. Don't let this worry you.
  212. echo     If you are  unsure about how to answer a given question, just press
  213. echo     [RETURN] on  your keyboard.   You can run the  Installation Utility
  214. echo     (SPORTI) again as often as you wish.
  215. echo. 
  216. echo     After the  installation  is complete you will find  SPORTI  in your
  217. echo     default  SPORT  subdirectory.   The SPORT documentation covers many
  218. echo     more advanced features which you may wish to explore.
  219. echo. 
  220. pause
  221. if "%1" == "C:" SPORTI 3
  222. if "%1" == "c:" SPORTI 3
  223. if "%1" == "D:" SPORTI 4
  224. if "%1" == "d:" SPORTI 4
  225. if "%1" == "E:" SPORTI 5
  226. if "%1" == "e:" SPORTI 5
  227. if "%1" == "F:" SPORTI 6
  228. if "%1" == "f:" SPORTI 6
  229. if "%1" == "G:" SPORTI 7
  230. if "%1" == "g:" SPORTI 7
  231. if "%1" == "H:" SPORTI 8
  232. if "%1" == "h:" SPORTI 8
  233. if "%1" == "I:" SPORTI 9
  234. if "%1" == "i:" SPORTI 9
  235. if "%1" == "J:" SPORTI 10
  236. if "%1" == "j:" SPORTI 10
  237. REM pause
  238.  
  239. if errorlevel 1 goto aab
  240. goto ccb
  241.  
  242. :aab
  243. cls
  244. echo. 
  245. echo You have asked to cancel the SPORT Installation process.
  246. echo        The Installation may be rerun at any time.
  247. echo. 
  248. goto finis
  249.  
  250. :ccb
  251. if not exist \SPORT\SPORT.EXE GOTO NOT1
  252. if not exist \SPORT\DOCS\USER.DOC GOTO NOT1
  253.  
  254. if not exist \SPORT\SPORTEVT.EXE GOTO NOT2
  255. if not exist \SPORT\SPORTEDT.EXE GOTO NOT2
  256. if not exist \SPORT\SPORTEX.EXE GOTO NOT2
  257. if not exist \SPORT\SPORTRM.EXE GOTO NOT2
  258. if not exist \SPORT\SPORTLIB.EXE GOTO NOT2
  259. if not exist \SPORT\POSTMAIL.BAT GOTO NOT2
  260. if not exist \SPORT\SPORTR.CTL GOTO NOT2
  261. if not exist \SPORT\SPORTRTE.CTL GOTO NOT2
  262. if not exist \SPORT\SFLASH.RAW GOTO NOT2
  263. if not exist \SPORT\SPORT.RAW GOTO NOT2
  264. if not exist \SPORT\SPORTLIB.CTL GOTO NOT2
  265. if not exist \SPORT\SPREP.EXE GOTO NOT2
  266. if not exist \SPORT\SPORTU.EXE GOTO NOT2
  267. if not exist \SPORT\SPORTRTE.EXE GOTO NOT2
  268. if not exist \SPORT\SMODEM.EXE GOTO NOT2
  269. if not exist \SPORT\SPORTEX.CTL GOTO NOT2
  270.  
  271. if not exist \SPORT\SPORT.OVR GOTO NOT3
  272. if not exist \SPORT\SPORTID.EXE GOTO NOT3
  273. if not exist \SPORT\SPORTCON.CTL GOTO NOT3
  274. if not exist \SPORT\SPORTI.EXE GOTO NOT3
  275. if not exist \SPORT\SPORTCON.CTL GOTO NOT3
  276. if not exist \SPORT\SPORTADM.EXE GOTO NOT3
  277.  
  278. if not exist \SPORT\BBSMENU.EXE GOTO NOT4
  279. if not exist \SPORT\SPORTBBS.EXE GOTO NOT4
  280. if not exist \SPORT\SPORTHLP.EXE GOTO NOT4
  281. if not exist \SPORT\SPORTRA.EXE GOTO NOT4
  282. if not exist \SPORT\SPORTRPT.EXE GOTO NOT4
  283. if not exist \SPORT\SPORTMM.EXE GOTO NOT4
  284. if not exist \SPORT\SPORTMM.CTL GOTO NOT4
  285. if not exist \SPORT\SPORT.NDX GOTO NOT4
  286. if not exist \SPORT\SPORTY.EXE GOTO NOT4
  287.  
  288. sprep y
  289. if exist \SPORT\WAITS.EXE DEL \SPORT\WAITS.EXE > NUL
  290. if exist \WAITS.EXE DEL \WAITS.EXE > NUL
  291. if exist \READ.ME DEL \READ.ME > NUL
  292. if exist \SPORT\READ.ME DEL \SPORT\READ.ME > NUL
  293. if exist SPORTKEY.EXE SPORTKEY
  294. cls
  295. :hd3
  296. echo. 
  297. echo    ┌───────────────────────────────────────────────────────────────────┐
  298. echo    │           The SPORT Wide Area Information Transfer System         │
  299. echo    │                        Installation Utility                       │
  300. echo    │            Copyright(c) 1988, 1992 Satore Center Software         │
  301. echo    └───────────────────────────────────────────────────────────────────┘
  302. echo.
  303. echo    Your SPORT system has now been installed. You will want to edit your
  304. echo    Phone Index list. Do this by using (U)tilities / Edit ID(X) file from
  305. echo    the Main Screen.
  306. echo. 
  307. echo    Two files have been automatically prepared, but you may wish to edit
  308. echo    them; SPORT.BAN - the banner file shown to human callers and
  309. echo          SCHAT.BAN - the banner file shown to callers who want to chat.
  310. echo. 
  311. echo    A batch file named RUNSPORT.BAT has been created. You may now use SPORT
  312. echo    by typing RUNSPORT at the \SPORT directory prompt.
  313. echo. 
  314. echo    You will find the SPORT documentation in the subdirectory \SPORT\DOCS.
  315. echo.   Registration information is contained in the documentation.
  316. echo.
  317. echo    If you would like to run SPORT in the Test Mode, enter this command:
  318. echo.
  319. echo                               RUNSPORT X
  320. GOTO FINIS
  321.  
  322. :NOT1
  323. cls
  324. echo.
  325. echo.
  326. echo.
  327. echo            One of the files from Disk or File #1 has not be installed.
  328. echo               Please reinstall SPORT from the original disk or file.
  329. echo.
  330. echo.
  331. echo.
  332. GOTO FINIS
  333.  
  334. :NOT2
  335. cls
  336. echo.
  337. echo.
  338. echo.
  339. echo            One of the files from Disk or File #2 has not be installed.
  340. echo               Please reinstall SPORT from the original disk or file.
  341. echo.
  342. echo.
  343. echo.
  344. GOTO FINIS
  345.  
  346. :NOT3
  347. cls
  348. echo.
  349. echo.
  350. echo.
  351. echo            One of the files from Disk or File #3 has not be installed.
  352. echo               Please reinstall SPORT from the original disk or file.
  353. echo.
  354. echo.
  355. echo.
  356. GOTO FINIS
  357.  
  358. :NOT4
  359. cls
  360. echo.
  361. echo.
  362. echo.
  363. echo            One of the files from Disk or File #4 has not be installed.
  364. echo               Please reinstall SPORT from the original disk or file.
  365. echo.
  366. echo.
  367. echo.
  368. GOTO FINIS
  369.  
  370. :FINIS
  371.